// Rectangle

function Rectangle( x, y, height, width, color )
{
    this.color = color;
    this.x = x;
    this.y = y;
    this.height = height;
    this.width = width;
    this.lineWidth = 2;
    this.offsetX = 0;
    this.offsetY = 0;
}

Rectangle.prototype.draw = function ( context )
{   
    context.save();
    context.lineWidth = this.lineWidth;
    context.fillStyle = this.color;
    context.beginPath();
    context.fillRect( this.x, this.y, this.width, this.height );
    context.closePath();
    context.fill();
    context.stroke();
    context.restore();        
}
